import request from '@/utils/request'

//工单状态统计
export function getAllTaskNum(start,end) {
  return request({
    url: `/task-service/task/taskReportInfo/${start}/${end}`,
    method: 'get',
  })
}
//订单量
export function getOrderCount(start,end) {
  return request({
    url: `/order-service/report/orderCount?start=${start}&end=${end}`,
    method: 'get',
  })
}
//销售额
export function getOrderAmount(start,end) {
  return request({
    url: `/order-service/report/orderAmount?start=${start}&end=${end}`,
    method: 'get',
  })
}
//销售榜前十
export function getTopTen(topvalue,start,end) {
  return request({
    url: `/order-service/report/skuTop/${topvalue}/${start}/${end}`,
    method: 'get',
  })
}
//折线图
export function getLineInfo(collecttype,start,end) {
  return request({
    url: `/order-service/report/amountCollect/${collecttype}/${start}/${end}`,
    method: 'get',
  })
}
//柱状图
export function getBarInfo(start,end) {
  return request({
    url: `/order-service/report/regionCollect/${start}/${end}`,
    method: 'get',
  })
}
//饼图
export function getPieInfo() {
  return request({
    url: `/vm-service/node/nodeCollect`,
    method: 'get',
  })
}
//点位数 合作商数
export function getNodeCount() {
  return request({
    url: `/vm-service/node/count`,
    method: 'get',
  })
}
export function getPartnerCount() {
  return request({
    url: `/user-service/partner/count`,
    method: 'get',
  })
}
